<style>
    body{
        background-color: #f9f9f9;
    }
    .xh-form tr td:nth-child(2n){
        padding: 5px 20px 5px 0;
        width: 200px;
    }
    td>label{
        margin-right: 10px;
        float: right;
    }
</style>
<form id="xh_form" class="xh-form"  method="post"  >
    <div class="xh-area-form">
        <table style="width: 100%">
            <tr style="display: none">
                <td><input id="id_data" value="{{ id }}"/></td>
                <td><input id="sModel_data" value="{{ sModel }}"/></td>
                <td><input id="sImei_data" value="{{ sImei }}"/></td>
                <td><input id="schoolId_data" value="{{ schoolId }}"/></td>
                <td><input id="purpose_data" value="{{ iReceivePurpose }}"/></td>
            </tr>
            <tr style="display: none">
                <td><label >用户名：</label></td><td><input class="form-control" id="userName" name="userName" type="text" disabled="disabled" value="{{ sUserName }}"></td>
                <td><label >登录名：</label></td><td><input class="form-control" id="logonName" name="logonName" type="text" disabled="disabled" value="{{ sLogonName }}"></td>
            </tr>
            <tr>
                <td><label >设备号：</label></td>
                <td><input id="sDeviceNumber" name="sDeviceNumber" class="form-control" type="text" disabled="disabled" value="{{ sDeviceNumber }}"></td>
                <td><label >IMei：</label></td>
                {% if sImei %}
                    <td><input id="IMei" name="IMei" class="form-control" type="text" placeholder="必填" value="{{ sImei }}"></td>
                {% else %}
                    <td><input id="IMei" name="IMei" class="form-control" type="text" placeholder="必填"></td>
                {% endif %}
            </tr>
            <tr>
                <td><label >型号：</label></td><td><select class="form-control" id="sModel" name="sModel"></select></td>
                <td><label >品牌：</label></td><td><input class="form-control" id="sBrand" name="sBrand" type="text" placeholder="必填"></td>
            </tr>
            <tr>
                <td><label >故障描述：</label></td>
                <td colspan="3" style="width: 475px;"><textarea style="height:100px" class="form-control" id="remark" name="remark" type="text" placeholder="必填"></textarea></td>
            </tr>
            {% if iReceivePurpose == '库存' %}
                <tr>
                    <td><label >用途：</label></td><td><select id="purpose" name="purpose" class="form-control" disabled="disabled"></select></td>
                    <td><label >商品：</label></td><td><select id="product" name="product" class="form-control"></select></td>
                </tr>
                <tr>
                    <td><label >目的地：</label></td><td><select id="iDestination" class="form-control" name="iDestination"><option value="1">公司</option> <option value="2">维修站</option></select></td>
                </tr>
            {% else %}
                <tr>
                    <td><label >目的地：</label></td><td><select id="iDestination" class="form-control" name="iDestination"><option value="1">公司</option> <option value="2">维修站</option></select></td>
                    <td><label >用途：</label></td><td><select id="purpose" name="purpose" class="form-control" disabled="disabled"></select></td>
                </tr>
            {% endif %}
        </table>
    </div>
</form>